var frame = null;

plugin.hdchina = function( tabName, tabURL )
{
       frame = document.createElement("IFRAME");
       frame.name = "HDChina";

       frame.src = tabURL;
       frame.id = "HDChina";
       frame.style.width = "100%";
       frame.style.height = "100%";
       frame.style.border = "0";
       this.attachPageToTabs(frame,tabName);
}

theTabs.onShow = function(id)
{
       if(id=="HDChina")
       {
               frame.src = "http://hdchina.org/browse.php/"
       }
}

plugin.show = theWebUI.show;
        theWebUI.show = function()
        {
                plugin.show.call(this);
                theTabs.show("HDChina");
        }
        
plugin.hdchina( "HDChina", "http://hdchina.org/browse.php" );
 
